package inherit;

public class Test {
    public static void main(String[] args) {
        Animal dog = new Dog();
        Animal cat = new Cat();
        dog.bark();
        ((Dog) dog).watchDoor();
        cat.bark();
    }
}
